const express = require('express')
const app = express()
const cors = require('cors')
const config = require('./config')
const listRouter = require('./router/testRouter')
/* const verify = require('./middware/verifyToken') */
app.use(cors())
app.use(express.json())
app.use(express.urlencoded({ extended: true }))

/* app.use(verify) */
app.use('/list', listRouter)


app.listen(config.port, (err) => {
    if (!err) {
        console.log(`服务启动成功,地址为:http://${config.host}:${config.port}`)
    }
})